package org.dtrd.modules.content.tags.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.content.tags.entity.po.DtrdExtEmsYwTags;

/**
 * <p>
 * 标签
 * </p>
 *
 * @author QR
 * @since 2022-03-15
 */
@Getter
@Setter
@ApiModel(value = "标签详情")
public class TagsDetail {

    private Integer tagId;

    @ApiModelProperty("标签名称")
    private String tagName;

    @ApiModelProperty("标签类型id")
    private Integer tagType;
    @ApiModelProperty("标签类型名字")
    private String tagTypeName;

    @ApiModelProperty("标签热度")
    private Integer tagHot;


    public TagsDetail parseFromPO(DtrdExtEmsYwTags po) {
        tagId = po.getDataId();
        tagName = po.getTagName();
        tagType = po.getTagType();
        tagHot = po.getTagHot();
        return this;
    }
}
